package userDto

type ListRequest struct {
	Page          int       `json:"page" validate:"required,min=1"`
	Limit         int       `json:"limit" validate:"required,min=1,max=9999"`
	Id            *string   `json:"id"`
	AdminId       *int      `json:"admin_id"`
	Mobile        *string   `json:"mobile"`
	Expires       *[]string `json:"expires"`
	Status        *int      `json:"status" validate:"omitempty,oneof=0 1"`
	Region        *[]string `json:"region"`
	Address       *string   `json:"address"`
	AdminSearchId *string   `json:"admin_search_id"`
	AdminMobile   *string   `json:"admin_mobile"`
}

type ListResponse struct {
	List  []UserInfo `json:"list"`
	Total int64      `json:"total"`
	Page  int        `json:"page"`
	Limit int        `json:"limit"`
}

type UserInfo struct {
	Id       int      `json:"id"`
	Username string   `json:"username"`
	Mobile   string   `json:"mobile"`
	Status   int      `json:"status"`
	Expires  string   `json:"expires"`
	Region   []string `json:"region"`
	Address  string   `json:"address"`
}
